#include <iostream>
#include <vector>
#include <ctime>
#include "MyMath.h"
#include "OneDimProblem.h"
#include "TwoDimProblem.h"
#include "FileOperator.h"
using namespace std;

int main()
{
	time_t start;

	OneDimProblem oneDimProblem = OneDimProblem("OneDim.txt");
	vector<double> x;
	oneDimProblem.Solve();
	oneDimProblem.GetPotential(x);
	PrintConsole::PrintVector(x);
	oneDimProblem.OutputResult();
	TwoDimProblem twoDimProblem = TwoDimProblem("TwoDim.txt");
	start = clock();
	twoDimProblem.Solve();
	cout << "Time elapsed: " << (double)(clock() - start) / ((clock_t)1000) << "s" << endl;
	twoDimProblem.OutputResult();
}